package org.misty.redis.autoconfigure.common;

import org.misty.redis.autoconfigure.cache.DefaultCacheAutoConfiguration;
import org.misty.redis.autoconfigure.cache.MultiCacheRegistrar;
import org.misty.redis.autoconfigure.filter.DefaultFilterAutoConfiguration;
import org.misty.redis.autoconfigure.filter.MultiFilterAutoConfiguration;
import org.misty.redis.autoconfigure.locker.DefaultLockerAutoConfiguration;
import org.misty.redis.autoconfigure.locker.MultiLockerRegister;
import org.springframework.boot.autoconfigure.AutoConfigureBefore;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

/**
 * @author Misty on 2020-06-12
 */
@Configuration(proxyBeanMethods = false)
@EnableConfigurationProperties(MultiConfigProperties.class)
@Import({
    MultiFilterAutoConfiguration.class,
    MultiLockerRegister.class,
    MultiCacheRegistrar.class
})
@AutoConfigureBefore({
    DefaultFilterAutoConfiguration.class,
    DefaultLockerAutoConfiguration.class,
    DefaultCacheAutoConfiguration.class
})
public class RedisToolsAutoConfiguration {
}
